Repository navigation
Use 'anchor program deploy' in place of deprecated 'anchor deploy' - #205
Open
mikemaccana wants to merge 2 commits into
Open
mikemaccana wants to merge 2 commits into
mikemaccana wants to merge 2 commits into
Conversation
mikemaccana
force-pushed
the
claude/happy-ritchie-3txkdr
branch
from
November 3, 2026 16:03
bba21e5 to
29a3b2c
Compare
…3txkdr # Conflicts: # basics/repository-layout/anchor-v1/README.md # basics/repository-layout/anchor/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Anchor CLI prints
Warning: 'anchor deploy' is deprecated. Use 'anchor program deploy' instead.This replaces everyanchor deployin the repository's READMEs (85 occurrences in 83 files) withanchor program deploy. No scripts or workflows used the old command.Both Anchor versions support the new command
The
anchor-v1/examples pinanchor-lang1.2.1 and theanchor/examples pin 2.0.0-rc.1, so I checked the CLI source (cli/src/lib.rsin solana-foundation/anchor) at both versions and at v1.0.0 and v1.2.2:Command::Deployis marked#[deprecated(since = "0.32.0", note = "use \anchor program deploy` instead")]` and prints the warning above. It still runs.ProgramCommand::Deploy("Deploy an upgradeable program") exists at all four versions. If you don't give it a program file, it finds the programs in the workspace, likeanchor deploydoes.So
anchor program deployis correct for both the v1 and the v2 examples.🤖 Generated with Claude Code
https://claude.ai/code/session_01GZHin7FgJtEfVNL6rDjEpW